using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu]//// 允许在Unity编辑器的Create菜单中创建该类的实例
public class LevelConfig : ScriptableObject
{
    [SerializeField]
    public List<EnemyWaveGroup> EnemyWaveGroups = new List<EnemyWaveGroup>();
}
[Serializable]
public class EnemyWaveGroup
{
    public string Name;
    [TextArea] public string Description = string.Empty;//，使用TextArea属性使其在Inspector中显示为多行文本框
    [SerializeField]
    public List<EnemyWave> Waves = new List<EnemyWave>();
}
[Serializable]
public class EnemyWave
{
    public string Name;
    public bool Action=true;
    public float GenerateDuration = 1;//间隔
    public GameObject EnemyPrefab;
    public int Seconds = 10;
    public float SpeedScale = 1.0f;
    public float HpScale = 1.0f;
}

